package com.woniu.dao.homePage;

import com.woniu.entity.Comment;
import com.woniu.entity.Orders;
import com.woniu.entity.OrdersDetails;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @author 陈乙嘉
 * @data 2023/3/14 11:23
 */
public interface MyAppDao {

    List<Orders> findMyOrders(Orders orders);

    List<OrdersDetails> findOrderDetailsByOrderId(@Param("orderId") String orderId);

    void userUpdateOrderStatus(Orders orders);

    void insertComments(Comment comment);

    //根据手机号和状态为3查询配送员id
    Long findDispatcherIdByPhoneAndStatus(@Param("phone") String phone,@Param("orderId") String orderId);
}
